import jwt from 'jsonwebtoken'
export default function isverify(token, key) {
  return new Promise((res, rej) => {
    jwt.verify(token, key, (error, results) => {
      if (error) rej(error)
      res(results)
    })
  })
}